package com.sun.gulimall.coupon.controller;

import com.sun.common.utils.R;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RefreshScope
@RestController
@RequestMapping("/nacos")
public class TestNacosController {

    @Value("${user.info}")
    private String userInfo;


    @RequestMapping("/get")
    public R getInfo(){
        return R.ok().put("userinfo",userInfo);
    }
}
